package cn.joker.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PermissionTreeVO {
    @ApiModelProperty(value = "权限唯一标识")
    private String permissionCode;

    @ApiModelProperty(value = "权限图标")
    private String icon;

    @ApiModelProperty(value = "权限名称")
    private String permissionName;

    @ApiModelProperty(value = "子权限列表")
    private List<PermissionTreeVO> children = new ArrayList<>();
    // 构造方法
    public PermissionTreeVO(String permissionCode, String permissionName,String icon) {
        this.permissionCode = permissionCode;
        this.permissionName = permissionName;
        this.icon = icon;
    }

}
